C code for PEDeleteNthSortField and PEDeleteNthGroupSortField

Just as sort fields and group sort fields can be added or changed with PESetNthSortField and PESetNthGroupSortField, they can also be deleted using PEDeleteNthSortField and PEDeleteNthGroupSortField. The following code is an example of how to use these functions:

PEDeleteNthSortField

short            sortFieldN;
    // the sort field to be deleted sortFieldN = 1;
    // Delete the second sort field if (!PEDeleteNthSortField(Job, sortFieldN)){
    // Handle error
}

PEDeleteNthGroupSortField

short            groupSortFieldN;
    // the group sort field to be deleted groupSortFieldN = 0;
    // Delete the first group sort field if (!PEDeleteNthGroupSortField(Job, groupSortFieldN)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com